package com.beyondbit.hr.report.support;

import net.sf.jasperreports.engine.JRException;
import net.sf.jasperreports.engine.JasperPrint;
import net.sf.jasperreports.export.ExporterConfiguration;
import net.sf.jasperreports.export.ReportExportConfiguration;
import org.springframework.http.MediaType;

import java.io.OutputStream;
import java.util.List;
import java.util.Map;

public interface ReportRenderer {
    List<MediaType> getSupportedMediaTypes();
    ExporterConfiguration defaultExporterConfiguration();
    ReportExportConfiguration defaultReportExportConfiguration();
    Map<String, Object> defaultReportSettings();
    void render(JasperPrint jasperPrint, ReportExportConfiguration reportExportConfiguration, ExporterConfiguration exporterConfiguration, OutputStream outputStream) throws JRException;
}
